<template>
    <div>
        <top-label v-model="index">
            <span :slot="0">案例警示</span>
            <span :slot="1">安全知识</span>
            <span :slot="2">在线教育</span>
        </top-label>
        <el-row>
            <keep-alive>
                <adaptation-plan v-if="index===0"></adaptation-plan>
                <worker-education v-if="index===1"></worker-education>
                <case-study v-if="index===2"></case-study>
            </keep-alive>
        </el-row>
    </div>
</template>

<script>
    import TopLabel from "~/components/TopLabel";
    import CaseStudy from "~/views/safety-management/online-education/CaseStudy";
    import AdaptationPlan from "~/views/safety-management/online-education/AdaptationPlan";
    import WorkerEducation from "~/views/safety-management/online-education/WorkerEducation";
    export default {
        name: "OnlineEducation",
        components:{
            WorkerEducation,
            AdaptationPlan,
            CaseStudy,
            TopLabel,
        },
        data(){
            return{
                index:0
            }
        }
    }
</script>

<style scoped>

</style>
